Keycloak REST Services 1.5.0-Final

Path: / admin / realms / {realm} / clients / {id} / allowed-origins

Returns set of allowed origin. This is used for CORS requests. Access tokens will have their allowedOrigins claim set to this value for tokens created for this client.

Path parameters:
realm - realm name (not id!)
id - id of client (not client-id)

Resource Methods
Method Summary
NameDescription
GET /admin/realms/{realm}/clients/{id}/allowed-originsReturns set of allowed origin.
PUT /admin/realms/{realm}/clients/{id}/allowed-originsChange the set of allowed origins.
DELETE /admin/realms/{realm}/clients/{id}/allowed-originsRemove set of allowed origins from current allowed origins list.

Method Detail

GET /admin/realms/{realm}/clients/{id}/allowed-origins

Returns set of allowed origin. This is used for CORS requests. Access tokens will have their allowedOrigins claim set to this value for tokens created for this client.

HTTP Example:
GET /admin/realms/{realm}/clients/{id}/allowed-origins
API Example:

ClientResource.getAllowedOrigins({'realm': /* name realm name (not id!) */,
  'id': /* id id of client (not client-id) */});

Output:
Set<String> -
Produces:
application/json

PUT /admin/realms/{realm}/clients/{id}/allowed-origins

Change the set of allowed origins. This is used for CORS requests. Access tokens will have their allowedOrigins claim set to this value for tokens created for this client.

HTTP Example:
PUT /admin/realms/{realm}/clients/{id}/allowed-origins
API Example:

ClientResource.updateAllowedOrigins({'realm': /* name realm name (not id!) */,
  'id': /* id id of client (not client-id) */,
  '$entity': /* allowedOrigins */});

Input:
Set<String>
Output:
void
Consumes:
application/json

DELETE /admin/realms/{realm}/clients/{id}/allowed-origins

Remove set of allowed origins from current allowed origins list. This is used for CORS requests. Access tokens will have their allowedOrigins claim set to this value for tokens created for this client.

HTTP Example:
DELETE /admin/realms/{realm}/clients/{id}/allowed-origins
API Example:

ClientResource.deleteAllowedOrigins({'realm': /* name realm name (not id!) */,
  'id': /* id id of client (not client-id) */,
  '$entity': /* allowedOrigins */});

Input:
Set<String>
Output:
void
Consumes:
application/json

Keycloak REST Services 1.5.0-Final